﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" 
    x:Class="LunchRoller.ImportExport"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="728" d:DesignWidth="480"
	d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}"
    shell:SystemTray.IsVisible="False" >


    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardIn"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" BackgroundColor="{StaticResource ApplicationBarBGColor}" ForegroundColor="{StaticResource ApplicationBarFGColor}">
            <shell:ApplicationBarIconButton IconUri="/Images/ApplicationBar/appbar.upload.rest.png" Text="导出到文本"/>
            <shell:ApplicationBarIconButton IconUri="/Images/ApplicationBar/appbar.download.rest.png" Text="导入到应用"/>			
            <shell:ApplicationBarIconButton IconUri="/Images/ApplicationBar/appbar.feature.email.rest.png" Text="发邮件"/>
			<shell:ApplicationBarIconButton IconUri="/Images/ApplicationBar/appbar.favs.rest.png" Text="全选"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource BackgroudBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="0.862*"/>
            <RowDefinition Height="0.138*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            
            <TextBlock x:Name="PageTitle" Text="导入导出" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Foreground="{StaticResource ForeColor}"/>
            <TextBlock TextWrapping="Wrap" Text="在这里可以将数据导出以邮件方式发出，也可以从邮件粘贴进来导入" Style="{StaticResource PhoneTextNormalStyle}" Foreground="{StaticResource ForeColorLight}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0" Grid.RowSpan="2">
        	<Grid.RowDefinitions>
        		<RowDefinition Height="0.728*"/>
        		<RowDefinition Height="170"/>
        	</Grid.RowDefinitions>
        	<TextBox Margin="8,8,8,0" TextWrapping="Wrap" Text="{Binding ImportingExportingString, Mode=TwoWay}" Foreground="{StaticResource DarkBorderBrush}" x:Name="_tbImportExport" />
        	<toolkit:ListPicker Margin="203,8,26,18" Grid.Row="1" SelectedIndex="0" Background="{StaticResource ItemTransBackground}" Foreground="{StaticResource DarkBorderBrush}" Name="_lsFormat">
        		     	<toolkit:ListPicker.Items >
        		     		  		   <toolkit:ListPickerItem Background="{StaticResource ItemTransBackground}">Xml</toolkit:ListPickerItem>  	
									   <toolkit:ListPickerItem>Json</toolkit:ListPickerItem>  	
						</toolkit:ListPicker.Items>
			</toolkit:ListPicker>
        	<TextBlock HorizontalAlignment="Left" Margin="41,16,0,83" Grid.Row="1" TextWrapping="Wrap" Text="数据格式" Width="158" FontSize="29.333" Foreground="{StaticResource ForeColor}" d:LayoutOverrides="Height"/>
</Grid>
    </Grid>

</phone:PhoneApplicationPage>
